package com.guangzi.mapper;


import com.guangzi.common.Pager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface LetterDao extends BaseDao {

    @Override
    List<Object> listPagerCriteria(@Param("pager") Pager pager, @Param("query") Object obj);

    @Override
    Long countCriteria(@Param("query") Object obj);

    List<Object> listPagerUid(@Param("pager") Pager pager, @Param("lState") Integer lState, @Param("uid") Long uid);

    Long countByUid( @Param("lState") Integer lState ,@Param("uid") Long uid);

    void letterUserSave();

    void letterUserUpdate(long letterId);
}
